import { MockMethod } from 'vite-plugin-mock'
import errors from '@/assets/staticdata/errors'
const Mock = require('mockjs')
let errs: Array<error> = errors
export default [
    {
        url: '/api/pushErrorInfo',
        method: 'get',
        response: (res: any) => {
            errs.push(res.query)
            return res
        },
    },
    {
        url: '/api/getErrorInfo',
        method: 'get',
        response: (res: any) => {
            return {
                data: errs
            }
        },
    },
] as MockMethod[]